﻿//
// *************************************************************************************
// WP-Framework
//
// Developed by 
// Lukas Kretschmar (lkretschmar.dev@bluewin.ch)
//
// Switzerland, Copyright (c) 2013 lkretschmar
// This content is released under the MIT License (http://opensource.org/licenses/MIT).
//     
// *************************************************************************************
//
//
			

using System;
using System.Linq.Expressions;
using KretschIT.WP_Fx.EasyMoq.Calls.Collections.Items;

namespace KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects
{
    internal class FakeCallItem : ICallItem
    {
        private MethodCallExpression call;

        public FakeCallItem(MethodCallExpression call) : this()
        {
            this.call = call;
        }

        public FakeCallItem()
        {
            this.Id = Guid.NewGuid();
        }

        public Guid Id { get; set; }

        public int Calls { get; set; }

        public bool Matches(MethodCallExpression methodCall)
        {
            return methodCall.Method.Name == this.call.Method.Name;
        }
    }
}
